package com.qihoo.finance.backup;

public abstract class Backer {

    protected String status;

    public Result invoke() throws Exception {
        this.status = "running";
        return backup();
    }

    abstract Result backup() throws Exception;

    public boolean isRunning() {
        return this.status.equals("running");
    }

    public void stop() {
        this.status = "stop";
    }
}
